@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary-color: #ffffff;
  --secondary-color: #1a1a1a;
  --accent-color: #0066ff;
  --gradient-bg: linear-gradient(45deg, #0066ff, #5900ff);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
}

:root[data-theme='light'] {
  --primary-color: #1a1a1a;
  --secondary-color: #ffffff;
  --accent-color: #0066ff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.hero {
  background: radial-gradient(circle at center, rgba(0,102,255,0.1) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('/path-to-your-grid-pattern.svg');
  opacity: 0.1;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
}

.hover-effect {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.primary-btn {
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons button {
    width: 100%;
  }
}

/* 添加动画关键帧 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
} 